package com.sit.jike.hrproject.bean;

import org.apache.commons.lang3.StringUtils;

public class SearchBean {
    private int page = 1;
    private int limit = 20;
    private String deptName;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName4Like() {
        if (StringUtils.isNotBlank(deptName)) {
            return "%" + deptName + "%";
        }
        return "";
    }
}
